'''
Code Time: 2020/5/4 9:45
Instance come from:
[1]郭钧,钟精诚,杜百岗,吴锐,李益兵.考虑模糊作业时间的再制造加工车间多目标调度方法[J].控制与决策,2020,35(06):1497-1504.DOI:10.13195/j.kzyjc.2018.1187.
'''

Machine_Info=[
    [300,60,0.0074],    # 运行功率/W  空载功率/W  加工单价/(元/s)
    [260,45,0.0046],
    [560,120,0.0091],
    [280,35,0.0085],
    [680,180,0.0065],
    [330,106,0.0057],
    [750,150,0.0085],
    [342,95,0.0037]
]
Processing_Machine=[
    [       #工件1
        [4,6,7],
        [1,5,6,8],
        [2,4,7],
    ],
    [       #工件2
        [3,4,5,6,8],
        [1,2,5,6],
        [4,6,7],
        [5,7],
        [1,2,4,5,7],
        [2,4,5,6]
    ],
    [       #工件3
        [2,7],
        [2,3,4,6],
        [3,4,5,8],
        [1,3,5,6,7],
    ],
    [       #工件4
        [2,6,7],
        [7],
        [2,3,4,7,8],
    ],
    [       #工件5
        [3,4,5],
        [4,8],
    ],
    [       #工件6
        [2,7],
        [3,7],
        [1,3,4,5,8],
    ],
    [       #工件7
        [3,5,6],
        [6,7],
        [6,7],
        [6,8],
    ],
    [       #工件8
        [1,7,8],
        [1,2],
        [1,2,6,8],
    ],
    [       #工件9
        [2,3,6],
        [1,3,4,6,7],
        [6,8],
        [2,4,5,7],
        [1,2,4,5,6,7]
    ],
    [       #工件10
        [2,7,8],
        [2,6,8]
    ]
]

Fuzzy_Processing_Time=[
    [   #工件1
        [   #工序1 .。。
            [10,12,15],
            [9,10,14],
            [7,9,13],
        ],
        [
            [14,17,21],
            [13,17,22],
            [7,10,12],
            [11,15,19],
        ],
        [
            [19,24,26],
            [7,11,14],
            [7,10,14],
        ],
    ],
    [
        [
            [13,16,20],
            [6,10,14],
            [17,21,27],
            [10,14,17],
            [14,17,22]
        ],
        [
            [6,8,9],
            [9,12,16],
            [14,19,23],
            [8,11,15]
        ],
        [
            [11,15,21],
            [18,21,28],
            [19,25,26]
        ],
        [
            [14,18,22],
            [7,9,11],
        ],
        [
            [9,12,15],
            [13,15,18],
            [10,14,17],
            [6,9,12],
            [8,10,14]
        ],
        [
            [7,9,12],
            [6,7,8],
            [7,10,12],
            [6,8,11]
        ],
    ],
    [
        [
            [10,14,17],
            [13,17,22],
        ],
        [
            [20,23,28],
            [19,23,25],
            [13,17,21],
            [14,18,22]
        ],
        [
            [17,20,25],
            [6,9,11],
            [20,22,27],
            [17,21,25]
        ],
        [
            [4,7,10],
            [8,10,14],
            [5,8,11],
            [7,11,14],
            [6,9,12]
        ],
    ],
    [
        [
            [12,18,20],
            [13,17,20],
            [15,18,21],
        ],
        [
            [9,12,16]
        ],
        [
            [5,8,11],
            [8,11,15],
            [7,8,10],
            [7,9,12],
            [15,20,22]
        ],
    ],
    [
        [
            [21,24,27],
            [6,10,13],
            [12,16,19]
        ],
        [
            [14,17,20],
            [7,8,12]
        ],
    ],
    [
        [
            [17,20,26],
            [20,22,25]
        ],
        [
            [15,18,22],
            [16,19,23],
        ],
        [
            [16,19,23],
            [13,17,19],
            [14,16,18],
            [12,16,18],
            [13,18,20]
        ],
    ],
    [
        [
            [10,16,19],
            [11,17,20],
            [14,16,18]
        ],
        [
            [17,20,23],
            [21,22,27],
        ],
        [
            [16,18,21],
            [19,23,27]
        ],
        [
            [8,10,14],
            [21,24,26],
        ]
    ],
    [
        [
            [8,11,15],
            [18,21,25],
            [17,21,23]
        ],
        [
            [20,25,29],
            [7,11,13],
        ],
        [
            [23,24,26],
            [15,18,21],
            [24,25,27],
            [16,20,23]
        ]
    ],
    [
        [
            [11,12,14],
            [6,9,11],
            [10,14,17]
        ],
        [
            [19,24,26],
            [7,11,13],
            [18,21,23],
            [20,22,28],
            [23,25,28]
        ],
        [
            [14,16,19],
            [17,19,23]
        ],
        [
            [5,6,8],
            [6,8,11],
            [5,7,10],
            [7,10,12]
        ],
        [
            [8,9,11],
            [8,12,13],
            [3,6,9],
            [8,11,13],
            [7,8,10],
            [7,10,13]
        ],
    ],
    [
        [
            [16,19,22],
            [19,21,25],
            [22,23,24]
        ],
        [
            [17,18,19],
            [22,24,27],
            [8,12,16]
        ]
    ]
]








